# Tanım: Red Hats Liberation yazı tipleri.
# URL: https://www.redhat.com/promo/fonts/
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler: xorg-fontconfig xorg-font-util xorg-encodings fontforge
# Grup: sistem

isim=ttf-liberation
surum=2.00.1
devir=1

kaynak=(
https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-$surum.tar.gz
ttf-liberation.30-0-liberation-mono.conf
ttf-liberation.30-0-liberation-sans.conf
ttf-liberation.30-0-liberation-serif.conf)

derle(){
    cd liberation-fonts-ttf-$surum
    install -d $PKG/usr/share/fonts/TTF/
    install -m644 *.ttf $PKG/usr/share/fonts/TTF/

    # install fontconfig files
    install -Dm644 $SRC/ttf-liberation.30-0-liberation-mono.conf \
       $PKG/etc/fonts/conf.avail/30-$isim-mono.conf
    install -Dm644 $SRC/ttf-liberation.30-0-liberation-sans.conf \
       $PKG/etc/fonts/conf.avail/30-$isim-sans.conf
    install -Dm644 $SRC/ttf-liberation.30-0-liberation-serif.conf \
        $PKG/etc/fonts/conf.avail/30-$pkgname-serif.conf
}
